<template>
    <div class="participant wrap-table">
    asdasdasdas
    </div>
</template>
<script>
export default {
    data() {
        return {
            searchData:{
                a:'',
                b:'',
                c:'',
                d:'',
                e:'',
                f:'',
                g:''
            },
            addForm1:{
                a:'',
            },
            tableData:[],
            pageId:1,
            total:null,
            loading:false,
            pageSize:10,
            dialogForm1:false,
            pickerOptions: {
                shortcuts: [{
                    text: '最近一周',
                    onClick(picker) {
                    const end = new Date();
                    const start = new Date();
                    start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
                    picker.$emit('pick', [start, end]);
                }
                }, {
                    text: '最近一个月',
                            onClick(picker) {
                        const end = new Date();
                        const start = new Date();
                        start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
                        picker.$emit('pick', [start, end]);
                    }
                }, {
                    text: '最近三个月',
                            onClick(picker) {
                        const end = new Date();
                        const start = new Date();
                        start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
                        picker.$emit('pick', [start, end]);
                    }
                }]
            },
            options1: [{value: '0', label: '孕前期'}, {value: '1', label: '怀孕期'}, {value: '2', label: '育儿期'}],
            options2: [],
            options3: [{value: '0', label: '干预组'}, {value: '1', label: '常规护理组'}],
            options4: [{value: '0', label: '高强度'}, {value: '1', label: '低强度'}],
            options5: [{value: '0', label: '活跃'}, {value: '1', label: '失去跟进'}, {value: '2', label: '进入孕期后发现不合格'}, {value: '3', label: '部分失访'}, {value: '4', label: '完全退出'}],
        }
    },
    components:{
       
    },
    created() {
        
    },
    methods: {
        handleSizeChange(val) {       //条数改变
            this.pageSize=val;
            this.getList()
        },
        handleCurrentChange(val) {    //页数改变
            this.pageId = val
            this.getList()
        },
        handleEdit:function(index,row){  //查看
            var that=this;
        },
        addInfo:function(){  //添加
            this.dialogForm1=true
        },
        nextStep1:function(){ //下一步  onestep

        },
        getList:function(){           //获取一级信息列表
            var that=this
            that.service({
                url:'/sys/dictbase/listData',
                method:'post',
                data:{
                    pageId:that.pageId,
                    pageSize:that.pageSize,
                    dictTypeSearch:that.selectOne==0 ? that.inputSearch:'',
                    dictTypeNameSearch:that.selectOne==1 ? that.inputSearch:''
                }
            }).then(response=>{
                that.tableData=response.data.rows
                    that.total=response.data.rowCount
                    that.loading=false
            }).catch(data=>{
                that.loading=false
            })
        },
    },
    mounted:function(){

    }
  }
</script>
<style>
   
</style>
